package com.eaoa.vo.pub;

import com.eaoa.vo.pub.base.BasePubDditem;
import com.stony.core.util.LabelValue;

public class PubDditem extends BasePubDditem implements LabelValue ,Comparable{

	private static final long serialVersionUID = 1L;
	
	public PubDditem(){
		super();
	}
	
	public PubDditem(java.lang.Long itemno){
		super(itemno);
	}
	

	public String getValue() {
		return this.getItemcode();
	}
	

	public String getLabel() {
		return this.getItemname();
	}

	public String getLabelshort() {
		return getValue() + "-" + getLabel();
	}

	public int compareTo(Object o) {
		int result = 0;
		PubDditem obj1 = this;
		PubDditem obj2 = (PubDditem) o;

		if (obj1 != null && obj2 !=null)
			result = obj1.getItemorder().compareTo( obj2.getItemorder());
		return result;
	}
	
	


}